# -*- python -*-
# Copyright 2010 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Import('env')

simple_srpc_test_exe = env.ComponentProgram(
    'simple_srpc_test',
    'simple_srpc_test.c',
    EXTRA_LIBS=['imc',
                'nonnacl_srpc',
                'nrd_xfer',
                'nacl_base',
                'platform',
                'gio'])
node = env.CommandTest(
    'simple_srpc_test.out',
    command=[simple_srpc_test_exe])
env.AddNodeToTestSuite(node, ['small_tests'], 'run_simple_srpc_test')


types_srpc_test_exe = env.ComponentProgram(
    'types_srpc_test',
    'types_srpc_test.c',
    EXTRA_LIBS=['imc',
                'nonnacl_srpc',
                'nrd_xfer',
                'nacl_base',
                'platform',
                'gio'])
node = env.CommandTest(
    'types_srpc_test.out',
    command=[types_srpc_test_exe])
env.AddNodeToTestSuite(node, ['small_tests'], 'run_types_srpc_test')
